

<nav id="pc_pagination" class="text-center">
<ul class="pagination">
{% with obj_list as page_obj %}
    {% if page_obj.has_previous %}
        <li><a href="?page={{ page_obj.previous_page_number }}&S={{ S }}&WT={{ WT }}&WB={{ WB }}&WS={{ WS }}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
    {% else %}
         <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
    {% endif %}
    {% for page in page_obj.paginator.page_range  %}
        {% if page %}
            {% ifequal page page_obj.number %}
                <li class="active"><a href="#">{{ page }} <span class="sr-only">(current)</span></a></li>
            {% else %}
                <li><a href="?page={{ page }}&S={{ S }}&WT={{ WT }}&WB={{ WB }}&WS={{ WS }}">{{ page }} </a></li>
            {% endifequal %}
          {% else %}
            <li><a href="#">...</a></li>
        {% endif %}
    {% endfor %}
    {% if page_obj.has_next %}
        <li><a href="?page={{ page_obj.next_page_number }}&S={{ S }}&WT={{ WT }}&WB={{ WB }}&WS={{ WS }}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>
    {% else %}
            <li class="disabled"><a href="#" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>
    </li>
    {% endif %}
{% endwith  %}
</ul>
</nav>